<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Products extends Model
{
    use HasFactory;

    protected $fillable = ['name', 'name_en', 'type', 'remark'];

    public function productsChildren()
    {
        return $this->hasMany(ProductsChildren::class, "product_id", "id");
    }
}
